//
//  CollectCouponCell.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/21.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "CollectCouponCell.h"

@implementation CollectCouponCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(CommonCouponModel *)model {
    
    self.cutLab.text = [NSString stringWithFormat:@"¥%@",[Utilities changeDoubleToString:model.scoCut]];
    
    if (model.scoFull == 0) {
        self.conditionLab.text = @"无门槛";
    } else {
        self.conditionLab.text =[NSString stringWithFormat:@"满%@可用",[Utilities changeDoubleToString:model.scoFull]];
    }
    
//    self.conditionLab.text =[NSString stringWithFormat:@"满%@可用",[Utilities changeDoubleToString:model.scoFull]];
    
    self.couponTypeLab.text = model.scoName;
    
    self.timeLab.text = [NSString stringWithFormat:@"有效期：%@\n~%@",model.scoEffectiveStartime,model.scoEffectiveEndtime];
}

@end
